# -*- coding: UTF-8 -*-
"""
Create by Louis on 2019/7/21-22:04
"""
# __author__ = "Louis"
from flask import Blueprint
from app.Api.v1 import book,user
# from app.Api.v1.book import api as book
# from app.Api.v1.user import api as user
def crate_blueprint_v1():

    bp_v1 =Blueprint ("v1",__name__)
    #关联红图与蓝图，红图注册到蓝图上
    #优化代码，这个url_prefix可以不传，优化
    user.api.register(bp_v1)
    book.api.register(bp_v1)
    return bp_v1